package com.design.pattern.proxy;

/**
 * @Description 追求者类
 * @author ll
 * @createTime 2021/6/1  18:08 
 */
public class Pursuit implements GiveGifts {

	SchoolGirls schoolGirls;

	public Pursuit(SchoolGirls schoolGirls){
		this.schoolGirls = schoolGirls;
	}

	@Override
	public void giveFlower() {
		System.out.println("送你鲜花："+schoolGirls.getName());
	}

	@Override
	public void giveLipstick() {
		System.out.println("送你口红："+schoolGirls.getName());
	}

	@Override
	public void giveDoll() {
		System.out.println("送你洋娃娃："+schoolGirls.getName());
	}
}
